home *** CD-ROM | disk | FTP | other *** search
- Path: kuhub.cc.ukans.edu!anh
- From: anh@kuhub.cc.ukans.edu
- Newsgroups: comp.lang.c
- Subject: Re: Finding a prime number
- Message-ID: <1996Feb16.180234.114184@kuhub.cc.ukans.edu>
- Date: 16 Feb 96 18:02:34 CST
- References: <4fnnfuINNib7@keats.ugrad.cs.ubc.ca> <4fteet$b7e@sun001.spd.dsccc.com>
- Organization: University of Kansas Academic Computing Services
-
-
- prime1*prime2*prim3*...*largest_prime_to_date + 1 ?
-
- I have not tried to see how long it would take to multiply a million or
- whatever the number of primes known is.
-
- Anh
-
-
- In article <4fteet$b7e@sun001.spd.dsccc.com>, jmccarty@spd.dsccc.com (Mike McCarty) writes:
- > In article <DMqqu9.1I1@cwi.nl>, Dik T. Winter <dik@cwi.nl> wrote:
- > )In article <4fr62vINNcvu@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
- > )There is no reason at all to use probable primes. Primality proving is not
- > )so very time consuming. For instance to *prove* that
- > ) 1000000000000000000000000000000000000000000000000000000000000000000000\
- > ) 000000000000000000000000000289
- > )is prime takes 14 seconds on a 100 MHz SGI R4k Indigo. And that is about
- > )the expected time for 100-digit numbers. BTW, this is the smallest prime
- > )100-digit number. It took me just now much less than one minute to find it.
- > )Note that you need the time consuming part only for those numbers that pass
- > )the probabilistic tests.
- > )--
- >
- > Indeed, primality proving is not too difficult. Just as large prime
- > computation is not difficult. I computed the largest prime known to man
- > on a 10 MHz XT computer in 1992. It took a little over 10 days. Using
- > the machines I have today, I can rerun it in about 4 hours. Really a
- > pretty trivial thing to do. But to -find- the largest known prime, that
- > is a real job. Just finding a large prime is not a big chore.
- >
- > Mike
- > ----
-